package org.longgang.tools;

public class ResponseData {
	// 服务器请求的状态1、接受到请求、2、请求成功处理、3、请求有异常请查看msg信息
	private int code = 1;
	// 服务器返回回去的数据
	private Object data;
	// 服务器返回给客户端的信息
	private String msg;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	@Override
	public String toString() {
		return "ResponseData [code=" + code + ", data=" + data + ", msg=" + msg + "]";
	}

	public ResponseData(int code, Object data, String msg) {
		super();
		this.code = code;
		this.data = data;
		this.msg = msg;
	}

	public ResponseData() {
		super();
	}
}
